package com.start_eternity.oasissafewalk.service.impl;
//登录
import com.start_eternity.oasissafewalk.mapper.LoginMapper;
import com.start_eternity.oasissafewalk.pojo.Account;
import com.start_eternity.oasissafewalk.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper loginMapper;
    @Override
    public Account login(Account account) {
        Account account1 = loginMapper.getByUsernameAndPassword(account);
        return account1;
    }
}
